home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 619 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: vesper.enet.dec.com!vesper
  2. From: vesper@vesper.enet.dec.com (Andy V)
  3. Newsgroups: gnu.misc.discuss,comp.std.c
  4. Subject: Re: Coding Standards are ignorant
  5. Date: 21 Mar 1996 14:01:01 GMT
  6. Organization: Digital Equipment Corporation
  7. Distribution: world
  8. Message-ID: <4irnet$jf5@peavax.eng.pko.dec.com>
  9. References: <4gum82$14v4@info4.rus.uni-stuttgart.de>  <MIB.96Mar15170902@gnu.ai.mit.edu> <wyraut5fqq.fsf@dns.bluesky.net>  <MIB.96Mar16174948@gnu.ai.mit.edu> <4ifq40$i87@sundog.tiac.net>  <MIB.96Mar18105957@gnu.ai.mit.edu>  <314db547.242588844@nntp.ix.netcom.com> <MIB.96Mar19105603@gnu.ai.mit.edu> <4iqjo4$2c2@usenet.pa.dec.com>
  10. Reply-To: andy.vesper@eng.pko.dec.com
  11. NNTP-Posting-Host: vesper.eng.pko.dec.com
  12. X-Newsreader: mxrn 6.18-32
  13.  
  14.  
  15. diamond@tbj.dec.com (Norman Diamond) writes:
  16.  
  17. >Actually one famous mistake is already known with 64 bit machines.
  18. >8-bit char, 16-bit short, 32-bit int, 64-bit long is technically valid
  19. >but it is weird for int to have a different size from both short and long.
  20.  
  21. So why is this *weird*? One could argue with equal validity that
  22. it is *weird* to have a 32-bit int because, after all, the PDP-11 had
  23. a 16-bit int.
  24.  
  25. >Another mistake has been known for a couple of decades, making char the
  26. >unit size for most C operations when characters actually require 16 or
  27. >32 bits (or varying numbers of bits in some encoding schemes) while the
  28. >most popular unit size is 8 bits.
  29.  
  30. I agree with you -- `char' is really `byte' mispelled. It's only because
  31. ASCII characters fit into a `byte' that it was named `char' in the first 
  32. place.
  33. -- 
  34. Andy V (A Digital spoke, not a Digital Spokesperson)
  35.